package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.OsTask;
import org.jackysoft.util.Page;
import org.jackysoft.util.WorkflowDataType;

public interface OsTaskService extends ServiceProvider<OsTask> {

	/**
	 * 当前所有工作流
	 * */
	public Page getWorkItems(WorkflowDataType dataType, int page, int rows);

	/**
	 * 监控某个工作流实体
	 * 
	 * @param entityId
	 *            工作流实体编号
	 * */
	public Collection<OsTask> watchWorkItems(long id);
}
